/*
 * simpleSumAdmissionControll.h
 *
 *  Created on: 07-12-2013
 *      Author: Tomasz Lis
 */

#ifndef SIMPLESUMADMISSIONCONTROLL_H_
#define SIMPLESUMADMISSIONCONTROLL_H_

#include <csimplemodule.h>

#include <omnetpp.h>
#include <packet_m.h>
#include <fstream>
using namespace std;
class SimpleSumAdmissionControl: public cSimpleModule {
public:
    simtime_t lastPacketTime;
    cLongHistogram histogram;
    cOutVector vectorA;
    int timePeriod;
    int reservedCapacity;
    int totalCapacity;
    cMessage* event;
    int numberOfDeletedMinPrior;
    int numberOfDeletedMaxPrior;
    int numberOfDeleted;
    int numberOfForward;
    SimpleSumAdmissionControl();
    virtual ~SimpleSumAdmissionControl();
    virtual void initialize();
    virtual void handleMessage(cMessage* msg);
    virtual void finish();
};
Define_Module(SimpleSumAdmissionControl);
#endif /* SIMPLESUMADMISSIONCONTROLL_H_ */
